<?php

namespace App\Http\Controllers\Api;

use App\OrderOriginal;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class MessageController extends BaseController
{
    public $user;

    public function __construct(Request $request)
    {
        parent::__construct();
        $this->user = $this->is_login($request);
    }

    /**
     * @param Request $request
     *原始数据上报
     */
    public function original_data(Request $request){
        $cinema_code = $this->user['data']['cinema_code'];
        $data = OrderOriginal::where(['cinema_code'=>$cinema_code])->select('cinema_code','cinema_status','business_date','screen_code','film_code','session_code','session_datetime','operation','film_ticket_code as code','seat_code','price','service','online_sale','date_time as datetime')->get();
        return success($data,'查询成功');
    }

    //退票请求
    public function refund(Request $request){

    }
}
